﻿using Logistics.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Logistics.Car
{
    public interface IVehicleRepository
    {
        
        /// <summary>
        /// 显示车辆信息
        /// </summary>
        /// <returns></returns>
        Task<List<Vehicle>> GetVehicle();
        /// <summary>
        /// 基础车辆信息删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<int> Delete(int Id);
        /// <summary>
        /// 基础车辆添加
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        Task<int> Create(Vehicle m);
        /// <summary>
        /// 基础车辆信息反填
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<Vehicle> GetCarryById(int Id);
        /// <summary>
        /// 基础车辆修改
        /// </summary>
        /// <param name="ca"></param>
        /// <returns></returns>
        Task<int> UpdateVehicle(Vehicle ca);
    }
}
